package com.yxw.live_vod_boot.dto;

import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.ToString;
import org.springframework.format.annotation.DateTimeFormat;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Pattern;
import java.io.Serializable;
import java.util.Date;

/**
 * 人员支付密码修改
 * @author liuxin
 * @date 2023.0913
 */
@Data
@ToString(callSuper=true)
@ApiModel(value="UpdateUserPayPwdDTO", description="人员支付密码修改")
public class UpdateUserPayPwdDTO implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty("手机号")
    @NotBlank(message = "手机号不能为空")
    @Pattern(regexp = "^[1]([3-9])[0-9]{9}$", message = "手机号格式不正确")
    private String phone;

    @NotBlank(message = "新密码不能为空")
    @ApiModelProperty(value="新密码")
    private String payPwd;

    @NotBlank(message = "手机验证码不能为空")
    @ApiModelProperty(value="手机验证码")
    private String code;
}
